import { request } from '@vipl520/utils'

export function getCategoryList(page, size, project = 'question') {
  return request({
    url: '/gs_gold/app.category/getList',
    method: 'get',
    params: { page, size, project }
  })
}

export function saveDiyById(id, diyData) {
  return request(
    {
      url: '/gs_gold/admin.category/saveDiyById',
      method: 'post',
      data: { id, diyData }
    },
    {
      code_success_show: true
    }
  )
}
